package com.hu.hutool.dto.vo;

import com.commons.tools.page.PageReq;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author CazCen
 * @Date 2021/10/24 23:35
 */
@Data
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@ApiModel("用户信息入参")
public class UserVo extends PageReq implements Serializable {


    private static final long serialVersionUID = -7396520469332969951L;

    @ApiModelProperty("自增id")
    //@NotNull(message = "1000001", groups = DefaultGroup.class)
    private Integer id;

    @ApiModelProperty("年龄")
    private Integer age;

    @ApiModelProperty("手机")
//    @NotBlank(message = "{1000002}", groups = DefaultGroup.class)
//    @NotBlank(message = "1000002", groups = DefaultGroup.class)
    private String phone;

}
